﻿// <copyright file="BoardFactory.xaml.cs" company="Marcin Wosik">
// Copyright (c) 2010 All Right Reserved
// </copyright>
// <author>Marcin Wosik</author>
// <email>mawo11@gmail.com</email>
// <date>2010-02-25</date>
// <summary></summary>
namespace GameOfLife.GameData
{
    using GameOfLife.GameData.Blocks;
    using GameOfLife.Interfaces;

    internal static class BoardFactory
    {
        #region Methods

        /// <summary>
        /// Create instance of class boards....
        /// </summary>
        /// <param name="type"></param>
        /// <returns>NULL if selected board not support otherwise instance of that board</returns>
        internal static IBoard CreateBoard(BoardType type)
        {
            IBoard temp = null;
            switch (type)
            {
                case BoardType.Block:
                    temp = new BlockBoard();
                    break;
                //TOOD: for other boards type
            }

            return temp;
        }

        #endregion Methods
    }
}